<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="java.util.Date" %>
<%@ include file="/WEB-INF/views/include.inc.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="${contextPath}/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="${contextPath}/css/top.css">

    <script src="//cdn.bootcss.com/jquery/1.10.2/jquery.js"></script>
    <script src="${contextPath}/js/bootstrap.min.js"  type="text/javascript"></script>
    <script src="${contextPath}/js/menu_top.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".user").click(function () {

            });
        });
        function changepwd(obj) {
            try {
                debugger
                $(".modal").modal("show");
                var url = obj.attr("href");
                $(".modal .modal-body").load(url);
            } catch (e) {

            }

            return false;
        }
    </script>
</head>
<body>
<div class="main-top">
    <div class="main-top-logo">
        <img src="${contextPath}/images/logo.png">
    </div>
    <div class="main-top-menu">
        <ul>
            <li id="monitor" class="active" href="${contextPath}/monitor/monitor">实时监控</li>
            <li id="querymessage" href="${contextPath}/query/qWindInfoList">查询</li>
            <li id="sendmessage">系统管理</li>
            <li><a href="${contextPath}/index2">原首页</a></li>
        </ul>
    </div>
    <div class="main-top-user">
        <span class="user-logo"> <img src="${contextPath}/images/icon/user.png"></span> <span
            class="user">:${login_user.username }</span>

        <a onclick="changepwd(this)">修改密码</a>

        <span id="localtime" class="localtime"></span> <a
            href="javascript:;" class="logout"> <img src="${contextPath}/images/icon/logout.png">
        注销 </a>
    </div>
</div>
<div class="main-top-bottom"></div>

<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close"
                        data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    修改密码
                </h4>
            </div>
            <div class="modal-body">

            </div>
        </div>
        <!-- /.modal-content -->
    </div>
</div>
<!-- /.modal -->
</body>
</html>
